import request from '@/utils/request'

/**
 * 获取轮播图列表
 */
export function getBanner() {
  return request.get(`alcohol/banner`)
}

/**
 * 获取酒体分类列表
 */
export function getAlcoholtype() {
  return request.get(`alcohol/type`)
}

/**
 * 获取调酒师列表
 */
export function getBartender(params: Record<string, any>) {
  return request.get(`alcohol/bartender`, params)
}

/**
 * 获取容量规格
 */
export function getOther() {
  return request.get(`alcohol/other`)
}

/**
 * 获取专家配方列表
 */
export function getBartenderPlan(params: Record<string, any>) {
  return request.get(`alcohol/bartender_plan`, params)
}

/**
 * 获取专家详情
 */
export function getBartenderDetail(order_id: any) {
  return request.get(`alcohol/bartender/${order_id}`)
}
/**
 * 获取酒体列表
 */
export function getAlcoholbody(order_id: any) {
  return request.get(`alcohol/body/${order_id}`)
}

/**
 * 关闭订单
 */
export function orderClose(order_id: number) {
  return request.put(`shop/order/close/${order_id}`)
}

/**
 * 订单创建
 */
export function orderCreate(params: Record<string, any>) {
  return request.post('shop/order_create/create', params)
}

/**
 * 获取酒体订单列表
 */
export function getAlcoholOrderList(params: Record<string, any>) {
  return request.get(`alcohol/alcohol_order`, params)
}

/**
 * 获取包材列表
 */
export function getBaoCai(params?: Record<string, any>) {
  return request.get(`alcohol/bao_cai`, params)
}

/**
 * 获取酒体订单详情
 * */
export function getAlcoholOrderDetail(params?: Record<string, any>) {
  return request.get(`alcohol/alcohol_order_detail`, params)
}